package com.etong.frame.directive.checker.impl;

import com.etong.frame.directive.checker.Checker;

public abstract class CheckerImpl implements Checker {
	private String name;
	private String toast;
	private Integer code;

	public CheckerImpl(String name) {
		this.name = name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public abstract boolean check(Object object);

	public abstract boolean build(String expr);

	public String getToast() {
		return toast;
	}

	public void setToast(String toast) {
		this.toast = toast;
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

}
